using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using UnityEngine;
public class Debugger : MonoBehaviour
{
    public string audioPath = "Audio/vo_3808_000_001_0";
    [ContextMenu("Debugger")]
    public void _Debugger()
    {
        // ----- 1
        // int index = UnityEngine.Random.Range(0, 20);
        // GameManager.Instance.PlayAudio($"vo_3808_000_{index:D3}_0");

        // ----- 2
        // BaseClass _base = new DerivedClass();
        // Debug.Log(_base.GetType().Name); // 返回DerivedClass

        // ----- 3 
        // var jsonStr = JsonConvert.SerializeObject(Vector3.one, new JsonSerializerSettings {ContractResolver = new FieldOnlyResolver()});
        // Debug.Log(JsonConvert.DeserializeObject<Vector3>(jsonStr));

        Debug.Log(Application.productName);
        Debug.Log(AutoStartMgr.Instance.IsAutoStartEnabled());
    }
}

public class BaseClass {

}

public class DerivedClass : BaseClass {

}